<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script type="text/javascript" src="js/qrcode.min.js" ></script>
	</head>
	<body>
		<input id="content" />
		<button id="createQRCode">生成二维码</button>
		<div id="qrcode" ></div>
	</body>
	<script>
		var qrcode = new QRCode(document.getElementById("qrcode"),{
			width:300,
			height:300,
			correctLevel:QRCode.CorrectLevel.H
		})
		document.getElementById("createQRCode").onclick = function(){
			qrcode.clear();
			qrcode.makeCode(document.getElementById("content").value);
		}
	</script>
</html>
